// 基于template/src/config/app-entity-config.ts.hbs生成
import { IEntityDetail } from '@/core';
function getAppEntityConfig(): IEntityDetail[] {
    return [
        {
            name: 'AUTH_GRANTED_SYSTEM',
            codeName: 'Auth_granted_system',
            pluralizeCodeName: 'auth_granted_systems',
            storageMode: 0,
            logicName: '授权系统',
            keyField: 'Deploy_system_id',
            majorField: 'Display_name'
        },
        {
            name: 'SYS_COMPONENT_API',
            codeName: 'Sys_component_api',
            pluralizeCodeName: 'sys_component_apis',
            storageMode: 0,
            logicName: '组件使用接口',
            keyField: 'Id',
            majorField: 'Id'
        },
        {
            name: 'AUTH_GRANTED',
            codeName: 'Auth_granted',
            pluralizeCodeName: 'auth_granteds',
            storageMode: 0,
            logicName: '授权对象',
            keyField: 'Authority',
            majorField: 'Display_name'
        },
        {
            name: 'SYS_DEPLOY_SYSTEM',
            codeName: 'Sys_deploy_system',
            pluralizeCodeName: 'sys_deploy_systems',
            storageMode: 0,
            logicName: '系统',
            keyField: 'Id',
            majorField: 'Display_name'
        },
        {
            name: 'SYS_ORGANIZATIONAL_UNIT',
            codeName: 'Sys_organizational_unit',
            pluralizeCodeName: 'sys_organizational_units',
            storageMode: 0,
            logicName: '组织单元',
            keyField: 'Id',
            majorField: 'Ou'
        },
        {
            name: 'AUTH_GRANTED_ROLE',
            codeName: 'Auth_granted_role',
            pluralizeCodeName: 'auth_granted_roles',
            storageMode: 0,
            logicName: '授权角色',
            keyField: 'Role_id',
            majorField: 'Display_name'
        },
        {
            name: 'SYS_COMMON_NAME',
            codeName: 'Sys_common_name',
            pluralizeCodeName: 'sys_common_names',
            storageMode: 0,
            logicName: 'CN',
            keyField: 'Id',
            majorField: 'Cn'
        },
        {
            name: 'SYS_DEPARTMENT',
            codeName: 'Sys_department',
            pluralizeCodeName: 'sys_departments',
            storageMode: 0,
            logicName: '部门',
            keyField: 'Id',
            majorField: 'Department_name'
        },
        {
            name: 'AUTH_LOGIN',
            codeName: 'Auth',
            pluralizeCodeName: 'auths',
            storageMode: 0,
            logicName: '登录信息',
            keyField: 'Id',
            majorField: 'Login_name'
        },
        {
            name: 'AUTH_INFO',
            codeName: 'Auth_info',
            pluralizeCodeName: 'auth_infos',
            storageMode: 0,
            logicName: '认证信息',
            keyField: 'Id',
            majorField: 'Display_name'
        },
        {
            name: 'SYS_DATA_SCOPE',
            codeName: 'Sys_data_scope',
            pluralizeCodeName: 'sys_data_scopes',
            storageMode: 0,
            logicName: '数据范围',
            keyField: 'Id',
            majorField: 'Display_name'
        },
        {
            name: 'AUTH_USER',
            codeName: 'Auth_user',
            pluralizeCodeName: 'auth_users',
            storageMode: 0,
            logicName: '认证用户',
            keyField: 'Id',
            majorField: 'Display_name'
        },
        {
            name: 'SYS_MENU_FUNC',
            codeName: 'Sys_menu_func',
            pluralizeCodeName: 'sys_menu_funcs',
            storageMode: 0,
            logicName: '菜单功能',
            keyField: 'Menu_id',
            majorField: 'DISPLAY_NAME'
        },
        {
            name: 'OPEN_ACCESS_AUTH',
            codeName: 'OPEN_ACCESS_AUTH',
            pluralizeCodeName: 'open_access_auths',
            storageMode: 0,
            logicName: '接入认证绑定',
            keyField: 'Id',
            majorField: 'Name'
        },
        {
            name: 'SYS_ACTIVE_DIRECTORY',
            codeName: 'Sys_active_directory',
            pluralizeCodeName: 'sys_active_directories',
            storageMode: 0,
            logicName: 'AD',
            keyField: 'Id',
            majorField: 'Name'
        },
        {
            name: 'SYS_MENU',
            codeName: 'Sys_menu',
            pluralizeCodeName: 'sys_menus',
            storageMode: 0,
            logicName: '系统菜单',
            keyField: 'Id',
            majorField: 'Display_name'
        },
        {
            name: 'SYS_API',
            codeName: 'Sys_api',
            pluralizeCodeName: 'sys_apis',
            storageMode: 0,
            logicName: '接口',
            keyField: 'Id',
            majorField: 'Tags'
        },
        {
            name: 'SYS_DOMAIN',
            codeName: 'Sys_domain',
            pluralizeCodeName: 'sys_domains',
            storageMode: 0,
            logicName: '域',
            keyField: 'Id',
            majorField: 'Domain_name'
        },
        {
            name: 'SYS_PERSON',
            codeName: 'Sys_person',
            pluralizeCodeName: 'sys_people',
            storageMode: 0,
            logicName: '人员',
            keyField: 'Id',
            majorField: 'Display_name'
        },
        {
            name: 'OAUTH_CLIENT_DETAILS',
            codeName: 'OAUTH_CLIENT_DETAILS',
            pluralizeCodeName: 'oauth_client_details',
            storageMode: 0,
            logicName: 'oauth客户端信息',
            keyField: 'Client_id',
            majorField: 'Client_id'
        },
        {
            name: 'SYS_ROLE',
            codeName: 'Sys_role',
            pluralizeCodeName: 'sys_roles',
            storageMode: 0,
            logicName: '系统角色',
            keyField: 'Id',
            majorField: 'Name'
        },
        {
            name: 'SYS_ORGANIZATIONAL_ROLE',
            codeName: 'Sys_organizational_role',
            pluralizeCodeName: 'sys_organizational_roles',
            storageMode: 0,
            logicName: '用户组',
            keyField: 'Id',
            majorField: 'Name'
        },
        {
            name: 'SYS_MEMBER',
            codeName: 'Sys_member',
            pluralizeCodeName: 'sys_members',
            storageMode: 0,
            logicName: '成员',
            keyField: 'Id',
            majorField: 'Id'
        },
        {
            name: 'AUTH_PROVIDER',
            codeName: 'AUTH_PROVIDER',
            pluralizeCodeName: 'auth_providers',
            storageMode: 0,
            logicName: '统一认证/外部认证',
            keyField: 'Id',
            majorField: 'Name'
        },
        {
            name: 'SYS_CUSTOM_RESOURCE',
            codeName: 'Sys_custom_resource',
            pluralizeCodeName: 'sys_custom_resources',
            storageMode: 0,
            logicName: '自定义资源',
            keyField: 'Id',
            majorField: 'Display_name'
        },
        {
            name: 'SYS_GRANTED_AUTHORITY',
            codeName: 'Sys_granted_authority',
            pluralizeCodeName: 'sys_granted_authorities',
            storageMode: 0,
            logicName: '角色授权资源',
            keyField: 'Id',
            majorField: 'Id'
        },
        {
            name: 'SYS_COMPONENT',
            codeName: 'Sys_component',
            pluralizeCodeName: 'sys_components',
            storageMode: 0,
            logicName: '组件',
            keyField: 'Id',
            majorField: 'Display_name'
        },
        {
            name: 'AUTH_LOG',
            codeName: 'AUTH_LOG',
            pluralizeCodeName: 'auth_logs',
            storageMode: 0,
            logicName: '登录日志',
            keyField: 'Id',
            majorField: 'Name'
        },
        {
            name: 'SYS_PERMISSION',
            codeName: 'Sys_permission',
            pluralizeCodeName: 'sys_permissions',
            storageMode: 0,
            logicName: '权限资源',
            keyField: 'Id',
            majorField: 'Display_name'
        },
        {
            name: 'OPEN_ACCESS',
            codeName: 'OPEN_ACCESS',
            pluralizeCodeName: 'open_accesses',
            storageMode: 0,
            logicName: '开放接入',
            keyField: 'Id',
            majorField: 'Name'
        },
        {
            name: 'SYS_ORGANIZATION',
            codeName: 'Sys_organization',
            pluralizeCodeName: 'sys_organizations',
            storageMode: 0,
            logicName: '组织机构',
            keyField: 'Id',
            majorField: 'Organization_name'
        },
        {
            name: 'SYS_GROUP_OF_NAMES',
            codeName: 'Sys_group_of_names',
            pluralizeCodeName: 'sys_group_of_names',
            storageMode: 0,
            logicName: 'GroupOfNames',
            keyField: 'Id',
            majorField: 'Name'
        },
        {
            name: 'AUTH_MEMBER',
            codeName: 'Auth_member',
            pluralizeCodeName: 'auth_members',
            storageMode: 0,
            logicName: '隶属信息',
            keyField: 'Organizational_role_id',
            majorField: 'Organizational_role_name'
        },
        {
            name: 'SYS_API_OPERATION',
            codeName: 'Sys_api_operation',
            pluralizeCodeName: 'sys_api_operations',
            storageMode: 0,
            logicName: '接口方法',
            keyField: 'Id',
            majorField: 'Notes'
        },
        {
            name: 'SYS_ROLE_MEMBER',
            codeName: 'Sys_role_member',
            pluralizeCodeName: 'sys_role_members',
            storageMode: 0,
            logicName: '系统角色成员',
            keyField: 'Id',
            majorField: 'Id'
        }
    ]
}

export const AppEntityConfig = getAppEntityConfig();
